﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/EHTAdmin.Master" AutoEventWireup="true" CodeBehind="EHTCategoryNews.aspx.cs" Inherits="EHTWebsiteProject.Administrator.EHTCategoryNews" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MenuModulContent" runat="server">
      <div class="MenuSub-Left" >
        <table>
            <tr>
                <td> <img alt="" src="../images/EHTgiaodien/icon-48-category.png" width="48px" height="48px" /></td>               
                <td><asp:Label ID="lbCategoryNewsManager" runat="server" Text="Quản lý nhóm tin " ></asp:Label></td>                
            </tr>
        </table>           
    </div>
    <div class="MenuSub-Right" align="right">
        <table style="height:60px">
            <tr>                               
                 <td valign="middle">
                    <div class="add-edit-del">  
                            <asp:ImageButton ID="ImaTat" 
                                ImageUrl="~/images/EHTgiaodien/icon-32-unpublish.png" runat="server" 
                                width="32px" height="32px" class="imagboder" onclick="ImaTat_Click"  />                     
                            <br />
                            <asp:Label ID="lbTat" runat="server" Text="Tắt"></asp:Label>                       
                    </div>
                </td>
                <td valign="middle">
                    <div class="add-edit-del">   
                            <asp:ImageButton ID="ImgBat" 
                                ImageUrl="~/images/EHTgiaodien/icon-32-publish.png" runat="server" width="32px" 
                                height="32px" class="imagboder" onclick="ImgBat_Click"  />                     
                            <br />                                                 
                            <asp:Label ID="lbBat" runat="server" Text="Bật"></asp:Label>                       
                    </div>
                </td>
                <td valign="middle">
                    <div class="add-edit-del">   
                            <asp:ImageButton ID="ImagDichuyen" 
                                ImageUrl="~/images/EHTgiaodien/icon-32-move.png" runat="server" width="32px" 
                                height="32px" class="imagboder" onclick="ImagDichuyen_Click"   />                     
                            <br />                                                 
                            <asp:Label ID="lbDichuyen" runat="server" Text="Di chuyển"></asp:Label>                       
                    </div>
                </td>      
                  <td valign="middle">
                    <div class="add-edit-del">   
                            <asp:ImageButton ID="ImgSaochep" 
                                ImageUrl="~/images/EHTgiaodien/icon-32-copy.png" runat="server" width="32px" 
                                height="32px" class="imagboder" onclick="ImgSaochep_Click"   />                     
                            <br />                                                 
                            <asp:Label ID="lbCopy" runat="server" Text="Sao chép"></asp:Label>                       
                    </div>
                </td>                                               
                <td valign="middle">
                    <div class="add-edit-del">
                         <asp:ImageButton ID="ImgDel" ImageUrl="~/images/EHTgiaodien/icon-32-delete.png" 
                                runat="server" width="32px" height="32px" CssClass="imagboder" 
                                OnClientClick="return confirm('Are you sure you want to delete?');" 
                             onclick="ImgDel_Click" />                                                     
                            <br />
                            <asp:Label ID="lbDel" runat="server" Text="Xóa"></asp:Label>       
                    </div>
                </td>

                <td valign="middle">
                    <div class="add-edit-del">
                         <asp:ImageButton ID="ImgEdit" ImageUrl="~/images/EHTgiaodien/icon-32-edit.png" 
                                runat="server" width="32px" height="32px" CssClass="imagboder" onclick="ImgEdit_Click" 
                                />  <br />                                                                      
                            <asp:Label ID="lbEdit" runat="server" Text="Sửa"></asp:Label> 
                    </div>
                </td>
                <td valign="middle">
                    <div class="add-edit-del">
                        <a href="EHTCategoryNewsUI.aspx">
                            <img alt="" src="../images/EHTgiaodien/icon-32-new.png" width="32px" height="32px" class="imagboder" /><br />
                            <asp:Label ID="lbAddNew" runat="server" Text="Thêm mới"></asp:Label>
                        </a>
                    </div>
                </td>
                 <td valign="middle">
                    <div class="add-edit-del">
                         <asp:ImageButton ID="imgConfig" ImageUrl="~/images/EHTgiaodien/icon-32-config.png" 
                                runat="server" width="32px" height="32px" CssClass="imagboder" onclick="imgConfig_Click" 
                                />  <br />                                                                      
                            <asp:Label ID="lbCauHinh" runat="server" Text="Cấu hình"></asp:Label>                        
                    </div>
                </td>
                 <td valign="middle">
                    <div class="add-edit-del">
                        <a href="#">
                            <img alt="" src="../images/EHTgiaodien/icon-32-help.png" width="32px" height="32px" class="imagboder" /><br />
                            <asp:Label ID="lbHelp" runat="server" Text="Trợ giúp"></asp:Label>
                        </a>
                    </div>
                </td>                
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">

 <div style="padding:0px 0px 0px 0px" align="right">
        <table>
            <tr>
               
                <td>
                    <asp:DropDownList ID="ddlDanhmucSanPham" runat="server" CssClass="InputText" AutoPostBack="true" 
                        Width="180px" onselectedindexchanged="ddlDanhmucSanPham_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                 <td>
                    <asp:TextBox ID="txtsearch" runat="server" CssClass="InputText" Width="150px"></asp:TextBox> 
                &nbsp;</td>
                <td>
                    <asp:ImageButton ID="ImagSearch" runat="server" 
                        ImageUrl="~/images/EHTgiaodien/icon-16-orphan.png" Width="20px" Height="20px" 
                        onclick="ImagSearch_Click"/>
                &nbsp;&nbsp;&nbsp;
                </td>
            </tr>
        </table>
    </div>
    <asp:Literal ID="ltrErorr" runat="server"></asp:Literal>
     <div style="padding-top:5px;">
         <asp:Panel ID="pnNhomTin" runat="server">
            <telerik:RadTreeList ID="RadTreeList1" runat="server" 
        AutoGenerateColumns="false" ParentDataKeyNames="ChuyenMucChaID" AllowMultiItemSelection="true"
        AllowPaging="true" PageSize="20" DataKeyNames="DanhMucTinTucID" 
            onneeddatasource="RadTreeList1_NeedDataSource" Skin="Office2007" 
            onitemcommand="RadTreeList1_ItemCommand"             
            onpageindexchanged="RadTreeList1_PageIndexChanged" 
            onpagesizechanged="RadTreeList1_PageSizeChanged">
        <Columns>
            <telerik:TreeListSelectColumn HeaderStyle-Width="40px">
            </telerik:TreeListSelectColumn>
            <telerik:TreeListBoundColumn DataField="TenDanhMucTinTucVN" UniqueName="TenDanhMucTinTucVN" HeaderText="Tên danh mục" />                       
            <telerik:TreeListNumericColumn DataField="LuotTruyCap" UniqueName="LuotTruyCap" HeaderText="Lượt truy cập" HeaderStyle-Width="100px">               
            </telerik:TreeListNumericColumn>                                  
            <telerik:TreeListImageColumn  HeaderText="Trạng thái" HeaderStyle-Width="70px" UniqueName="Icon" DataImageUrlFields="Icon"  ItemStyle-HorizontalAlign="Center">                               
            </telerik:TreeListImageColumn>
             <telerik:TreeListNumericColumn DataField="DanhMucTinTucID" UniqueName="DanhMucTinTucID"  HeaderText="ID" HeaderStyle-Width="40px">               
            </telerik:TreeListNumericColumn>                                                                         
        </Columns>
    </telerik:RadTreeList>
         </asp:Panel>
         <asp:Panel ID="pnNhomTinOther" runat="server">
            <telerik:RadTreeList ID="RadTreeList2" runat="server" 
        AutoGenerateColumns="false" ParentDataKeyNames="ChuyenMucChaID" AllowMultiItemSelection="true"
        AllowPaging="true" PageSize="20" DataKeyNames="DanhMucTinTucID" 
            onneeddatasource="RadTreeList2_NeedDataSource" Skin="Office2007" 
            onitemcommand="RadTreeList2_ItemCommand"             
            onpageindexchanged="RadTreeList2_PageIndexChanged" 
            onpagesizechanged="RadTreeList2_PageSizeChanged">
        <Columns>
            <telerik:TreeListSelectColumn HeaderStyle-Width="40px">
            </telerik:TreeListSelectColumn>           
            <telerik:TreeListBoundColumn DataField="TenDanhMucTinTucOther" UniqueName="TenDanhMucTinTucOther" HeaderText="Category Name" />            
            <telerik:TreeListNumericColumn DataField="LuotTruyCap" UniqueName="LuotTruyCap" HeaderText="Visited" HeaderStyle-Width="100px">               
            </telerik:TreeListNumericColumn>                                  
            <telerik:TreeListImageColumn  HeaderText="Status" HeaderStyle-Width="70px" UniqueName="Icon" DataImageUrlFields="Icon"  ItemStyle-HorizontalAlign="Center">                               
            </telerik:TreeListImageColumn>
             <telerik:TreeListNumericColumn DataField="DanhMucTinTucID" UniqueName="DanhMucTinTucID"  HeaderText="ID" HeaderStyle-Width="40px">               
            </telerik:TreeListNumericColumn>                                                                         
        </Columns>
    </telerik:RadTreeList>
         </asp:Panel>
    </div>

</asp:Content>
